-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial AI exploration for the backend of the applications #50
base: main
Are you sure you want to change the base?
Conversation
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
def evaluate_clustering(embeddings, n_clusters=5): | ||
kmeans = KMeans(n_clusters=n_clusters, random_state=42) | ||
labels = kmeans.fit_predict(embeddings) | ||
silhouette_avg = silhouette_score(embeddings, labels) |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
|
||
def visualize_embeddings(embeddings, labels, method='PCA'): | ||
if method == 'PCA': | ||
reducer = PCA(n_components=2) |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
if method == 'PCA': | ||
reducer = PCA(n_components=2) | ||
elif method == 't-SNE': | ||
reducer = TSNE(n_components=2, perplexity=30, n_iter=1000) |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
|
||
# Choose dimensionality reduction method | ||
if method == 'PCA': | ||
reducer = PCA(n_components=2) |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
if method == 'PCA': | ||
reducer = PCA(n_components=2) | ||
elif method == 't-SNE': | ||
reducer = TSNE(n_components=2, perplexity=30, n_iter=1000) |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
|
||
# Choose dimensionality reduction method | ||
if method == 'PCA': | ||
reducer = PCA(n_components=2) |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
if method == 'PCA': | ||
reducer = PCA(n_components=2) | ||
elif method == 't-SNE': | ||
reducer = TSNE(n_components=2, perplexity=30, n_iter=1000) |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to talk about security concerns and understand the plan for the use of AI before merging
This pull request includes several changes to the data files and a new Jupyter notebook. The most important changes include the addition of new program entries in
Program.csv
, new program types inProgramType.csv
, and the creation of an empty Jupyter notebook file.Updates to data files:
notebook/data/Program.csv
: Added multiple new program entries with details such as code, credits, title, URL, cycle, and ID.notebook/data/ProgramType.csv
: Added new program types including Maîtrise with project, Microprogramme, Maîtrise with mémoire, Concentration in technologies of health, Doctorat, Programme court, Certificat, DESS, Cheminement universitaire en technologie (CUT), and Baccalauréat.New Jupyter notebook:
notebook/gnn.ipynb
: Created a new empty Jupyter notebook with Python as the specified language.